{% extends "base/content.html" %}
{% load crispy_forms_tags %}
{% block title %}
  {% trans "Upload a Spreadsheet of Purchased Ingredients" %}
{% endblock %}
{% block content %}
  <h2>{% trans "Please upload a spreadsheet of purchased ingredients." %}</h2>
  <p>
    {% trans "Need a template file?" %}
    <a href="{% url 'canteen:get_template_workbook_of_purchased_ingredients' %}">{% trans "Download it." %}</a>
  </p>
  <form method="post" enctype="multipart/form-data">
    {% csrf_token %} {{ form|crispy }}
    <div class="py-3 fixed-bottom text-end bg-dark">
      <button type="submit button" class="btn btn-outline-primary">
        {% trans "Upload" %}
      </button>
      <button type="button" class="btn btn-danger" onclick="window.close();">
        {% trans "Cancel" %}
      </button>
    </div>
  </form>
{% endblock %}
